﻿<%@ Page Title="" Language="C#" MasterPageFile="~/DeveloperSite.Master" AutoEventWireup="true" CodeBehind="AddProject.aspx.cs" Inherits="Amkeni_System.CO.Edit.AddProject" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>

    <span class="breadcrumb">
        <asp:SiteMapPath ID="SiteMapPath1" runat="server"></asp:SiteMapPath>
    </span>

    <asp:EntityDataSource ID="EntityDataSource1" runat="server" 
        ConnectionString="name=Amkeni_DatabaseEntities" DefaultContainerName="Amkeni_DatabaseEntities" 
        EnableFlattening="False" EntitySetName="programme_outcome" 
        Select="it.[outcome_id], it.[thematic_area]">
    </asp:EntityDataSource>

    <asp:EntityDataSource ID="EntityDataSource2" runat="server" 
        ConnectionString="name=Amkeni_DatabaseEntities" DefaultContainerName="Amkeni_DatabaseEntities" 
        EnableFlattening="False" EntitySetName="regions" 
        Select="it.[region_id], it.[name]">
    </asp:EntityDataSource>

    <asp:EntityDataSource ID="EntityDataSource3" runat="server" ConnectionString="name=Amkeni_DatabaseEntities" 
        DefaultContainerName="Amkeni_DatabaseEntities" EnableFlattening="False" 
        EntitySetName="ip_classification" Select="it.[ip_classification_id], it.[classification]">
    </asp:EntityDataSource>

    <asp:EntityDataSource ID="EntityDataSource4" runat="server" ConnectionString="name=Amkeni_DatabaseEntities" 
        DefaultContainerName="Amkeni_DatabaseEntities" EnableFlattening="False" 
        EntitySetName="RFPs" Select="it.[RFP_id], it.[RFP_name]">
    </asp:EntityDataSource>

    <asp:Label ID="error" runat="server" Visible="false"></asp:Label>
    <br />
    <asp:Label ID="Label3" runat="server" Text="ADD A NEW IMPLEMENTING PARTNER" CssClass="ContentHead"></asp:Label>
    <br />
    
    <asp:Table ID="Table1" runat="server">
        <asp:TableRow>
            <asp:TableCell style="padding-top:2em; padding-right:5px;">
                <asp:Label ID="Label7" runat="server" Text="Call For Proposal"></asp:Label>
            </asp:TableCell>
            <asp:TableCell style="padding-top:2em;">
                <asp:DropDownList ID="RFPList" runat="server" DataSourceID="EntityDataSource4" 
                    DataTextField="RFP_name" DataValueField="RFP_id" AppendDataBoundItems="true">
                    <asp:ListItem Selected="True" Text="N/A"></asp:ListItem>
                </asp:DropDownList>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ErrorMessage="Select the Call for Proposal" ForeColor="Red" ControlToValidate="RFPList"
                    ValidationGroup="ip" SetFocusOnError="true" InitialValue="N/A"></asp:RequiredFieldValidator>
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell style="padding-top:2em; padding-right:5px;">
                <asp:Label ID="Label1" runat="server" Text="Outcome"></asp:Label>
            </asp:TableCell>
            <asp:TableCell style="padding-top:2em;">
                <asp:DropDownList ID="ProgrammeList" runat="server" 
                    DataSourceID="EntityDataSource1" DataTextField="thematic_area" 
                    DataValueField="outcome_id">
                </asp:DropDownList>
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell style="padding-top:2em; padding-right:5px">
                <asp:Label ID="Label6" runat="server" Text="Classification"></asp:Label>
            </asp:TableCell>
            <asp:TableCell style="padding-top:2em">
                <asp:DropDownList ID="ClassificationList" runat="server"
                    DataSourceID="EntityDataSource3" DataTextField="classification"
                    DataValueField="ip_classification_id"></asp:DropDownList>
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell style="padding-top:1em;">
                <asp:Label ID="Label4" runat="server" Text="Region"></asp:Label>
            </asp:TableCell>
            <asp:TableCell style="padding-top:1em;">
                <asp:DropDownList ID="RegionList" runat="server"
                    DataSourceID="EntityDataSource2" DataTextField="name"
                    DataValueField="region_id">
                </asp:DropDownList>
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell style="padding-top:1em;">
                <asp:Label ID="Label2" runat="server" Text="Name"></asp:Label>
            </asp:TableCell>
            <asp:TableCell style="padding-top:1em;">
                <asp:TextBox ID="ProjectTextBox" runat="server" Width="40em" Height="3em" TextMode="MultiLine" 
                        CssClass="MText"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ErrorMessage="*" ForeColor="Red" ControlToValidate="ProjectTextBox"></asp:RequiredFieldValidator>
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell style="padding-top:1em;">
                <asp:Label ID="Label5" runat="server" Text="Abbreviation"></asp:Label>
            </asp:TableCell>
            <asp:TableCell style="padding-top:1em;">
                <asp:TextBox ID="AbbrevTextBox" runat="server" CssClass="MText"></asp:TextBox>
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell style="padding-top:1em;"></asp:TableCell>
            <asp:TableCell style="padding-top:1em;">
                <asp:Button ID="SaveButton" runat="server" Text="Save" OnClick="SaveButton_Click" ValidationGroup="ip" />
            </asp:TableCell>
        </asp:TableRow>
    </asp:Table>

</asp:Content>
